#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

void deleteNode(struct ListNode* node)
{
    struct ListNode* next = node->next;
    node->val = next->val;

    node->next = next->next;
    free(next);
}